using System;
using System.Web.UI.WebControls;

namespace Sedna.Core.Controller.Configurations
{
	/// <summary>
	/// Default implementation for ITextBoxConfiguration.
	/// </summary>
    public class TextBoxConfiguration : ClientScriptingConfiguration, ITextBoxConfiguration, ICloneable
	{

		private TextBoxMode textBoxMode=TextBoxMode.SingleLine;
		private int columns;
		private int rows;
		private int maxLength;
	    private BorderStyle borderStyle;
        private bool wrap;

		public TextBoxMode TextBoxMode
		{
			get { return textBoxMode; }
			set { textBoxMode = value; }
		}

		public int Columns
		{
			get { return columns; }
			set { columns = value; }
		}

		public int Rows
		{
			get { return rows; }
			set { rows = value; }
		}

		public int MaxLength
		{
			get { return maxLength; }
			set { maxLength = value; }
		}

        public BorderStyle BorderStyle
        {
            get { return borderStyle; }
            set { borderStyle = value; }
        }

	    public bool Wrap
	    {
	        get { return wrap; }
	        set { wrap = value; }
	    }

	    public object Clone()
	    {
            return this.MemberwiseClone();
	    }
	}
}
